﻿<Window x:Class="VMwareEnabler.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ignore="http://www.ignore.com"
        mc:Ignorable="d ignore"
        Height="329"
        Width="268"
        Title="VMware Enabler"
        Background="Gray"
        DataContext="{Binding Main, Source={StaticResource Locator}}" ResizeMode="CanMinimize" Icon="Oxygen-Icons.org-Oxygen-Actions-edit-clear-list.ico">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid Margin="5,150,5,25">
            <Button Grid.Column="0" Grid.Row="1" Content="Enable" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" Width="100" Height="50" Command="{Binding EnableButtonCommand}"/>
            <Button Grid.Column="0" Grid.Row="0" Content="Launch VMware" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="50" Command="{Binding LaunchVMwareCommand}" Margin="10,0,0,0"/>
            <Button Grid.Column="1" Content="Disable" HorizontalAlignment="Right" Margin="0,65,10,0" VerticalAlignment="Top" Width="100" Height="50" Command="{Binding DisableButtonCommand}"/>
            <Button Content="Check" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="100"  Height="50" Command="{Binding CheckButtonCommand}"/>
        </Grid>
        <TextBlock HorizontalAlignment="Left" Margin="40,5,0,0" TextWrapping="Wrap" Text="Services" VerticalAlignment="Top" FontWeight="Bold" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,20,0,0" TextWrapping="Wrap" Text="{Binding NAT}" VerticalAlignment="Top" Foreground="{Binding NATEnabled}"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,36,0,0" TextWrapping="Wrap" Text="{Binding USB}" VerticalAlignment="Top" Foreground="{Binding USBEnabled}"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,52,0,0" TextWrapping="Wrap" Text="{Binding DHCP}" VerticalAlignment="Top" Foreground="{Binding DHCPEnabled}"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,68,0,0" TextWrapping="Wrap" Text="{Binding AUTH}" VerticalAlignment="Top" Foreground="{Binding AUTHEnabled}"/>

        <TextBlock HorizontalAlignment="Left" Margin="40,85,0,0" TextWrapping="Wrap" Text="Network adapters" VerticalAlignment="Top" FontWeight="Bold" FontSize="14"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,100,0,0" TextWrapping="Wrap" Text="{Binding NET1}" VerticalAlignment="Top" Foreground="{Binding NET1Enabled}"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,115,0,0" TextWrapping="Wrap" Text="{Binding NET2}" VerticalAlignment="Top" Foreground="{Binding NET2Enabled}"/>
    </Grid>
</Window>
